package com.controller.library;

import java.io.UnsupportedEncodingException;
import java.util.ArrayList;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class TGetSelfPaperListServlet  extends HttpServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4818876137374352425L;

	public void doGet(HttpServletRequest request,HttpServletResponse response){
		try {
			request.setCharacterEncoding("utf-8");
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		int pageNum = Integer.parseInt(request.getParameter("submit_page_num"));
		request.getSession().setAttribute("startIndex", pageNum - 1);
		try{		
			response.sendRedirect("/Exam1/teacher/t_page/t_checkpaper.jsp?"+request.getQueryString());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
